package com.histone.heartbeat.pojo.resp;

import lombok.Data;

import java.time.Instant;

@Data
public class TextMessage extends BasicMessage{
    private String Content;

    public TextMessage(){
        super.setMsgType("text");
    }

    public TextMessage(String fromUserName, String toUserName, String content){

        super.setFromUserName(fromUserName);
        super.setToUserName(toUserName);
        super.setCreateTime(Instant.now().toEpochMilli());
        super.setMsgType("text");

        this.Content = content;
    }
}
